package com.oss.entity.oss;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.oss.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "last_price")
public class LastPrice extends BaseEntity {
    // ID
    @TableId(value = "id")
    private String id;
    // 合约代码
    private String instrumentCode;
    // 行情日期
    private LocalDate date;
    // 最新价
    private BigDecimal lastPrice;
    // 持仓量
    private BigDecimal openInterest;
    // 成交量
    private BigDecimal tradeVolume;
    // 结算价
    private BigDecimal settlementPrice;
    // 涨停价
    private BigDecimal limitUpPrice;
    // 跌停价
    private BigDecimal limitDownPrice;
    // 最高价
    private BigDecimal topPrice;
    // 最低价
    private BigDecimal bottomPrice;
}